<?php

declare(strict_types=1);

namespace app\chat\controller\admin;

use think\Request;
use sheep\controller\Backend;
use sheep\exception\SheepException;
use app\chat\model\Record as ChatRecord;
use think\facade\Db;

class Record extends Backend
{
    public function initialize()
    {
        $this->model = new ChatRecord;
    }

    /**
     * 聊天列表
     *
     * @return \think\Response
     */
    public function list()
    {
        $user = $this->model->sheepFilter()->with('sender')->order('id desc')->paginate(request()->param('list_rows', 10));
        return success('获取成功', $user);
    }

}
